package com.fwzc.giuseppe.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

import com.fwzc.giuseppe.R;
import com.fwzc.giuseppe.alipay.PayDemoActivity;
import com.fwzc.giuseppe.base.BaseActivity;

public class PayActivity extends BaseActivity implements OnClickListener{
	private Context context = PayActivity.this;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_pay);
		initBar();
		actionbar_side_name.setText("订单支付");
		iv_actionbar_side_left.setVisibility(View.VISIBLE);
		iv_actionbar_side_left.setOnClickListener(this);
		initView();
	}
	private void initView() {
		// TODO Auto-generated method stub
		RelativeLayout alipay = (RelativeLayout) findViewById(R.id.alipay);
		alipay.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		// 返回
		case R.id.iv_actionbar_side_left:
			finish();
			break;
		//alipay
		case R.id.alipay:

			Intent intent = new Intent(context, PayDemoActivity.class);

			intent.putExtra("payMoney","0.01");
			startActivity(intent);
			break;
		default:
			break;
		}	
	}

}
